package com.sg.bars.server.example.query;

import com.sg.bars.client.example.action.ExampleAction;
import com.sg.bars.client.example.domain.Example;
import com.sg.bars.server.kernel.service.AbstractActionQuery;

public class ExampleActionQuery extends AbstractActionQuery<Example> {
	private static final long serialVersionUID = 1L;

	@Override
	public Example processQuery() {
		ExampleAction exampleAction = (ExampleAction) getAction();
		exampleAction.setExampleId(exampleAction.getExampleId()+1);
		return getJpaDao().getJpaTemplate().find(Example.class, exampleAction.getExampleId());
	}

}
